#ifndef __CONNECTION_H__
#define __CONNECTION_H__

#include "Socket.h"
#include "InetAddr.h"

class Connection
{
public:
    Connection(const string &ip,unsigned short port);
    ~Connection();

    int fd();

private:
    Socket _sock;
    InetAddr _addr;
};

#endif
